package at.fhhgb.mc.Aufgabe03;

public class DLNode {
	/** Ref to the next elem in the list, or null if it is the last */
	public DLNode next;
	/** Ref to the prev elem in the list , or null if it is the first */
	public DLNode prev;
	/**
	 * Holds the actual data. Must equal Integer.MIN_VALUE if node contains a
	 * list
	 */
	public int val;

	public DoubleLinkedList list;

	public DLNode() {
		this(0, null, null);
	}

	public DLNode(int val) {
		this.val = val;
	}

	public DLNode(int val, DLNode next, DLNode prev) {
		this.val = val;
		this.next = next;
		this.prev = prev;
	}

	public DLNode(DoubleLinkedList list) {
		this.list = list;
		this.val = Integer.MIN_VALUE;
	}
}